package com.whj.homework.controller;

import com.whj.homework.login.LoginType;
import com.whj.homework.login.SuccessLogin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/homework")
public class LoginController {
    @RequestMapping(value = "/checklogin",method = {RequestMethod.GET})
    public LoginType checkLogin(){
        SuccessLogin successLogin = new SuccessLogin();
        successLogin.setMessage("允许进入详情页面");
        successLogin.setStatus("ok");
        return successLogin;
    }
}
